package com.jhy.study2.singleton;


/**
 * @author: robert
 * @description: 基于枚举实现单例
 * @date: 2021/8/22 16:17
 * @return
 */
public enum  SingletonClass5 {
    INSTANCE,RED,HH;
    SingletonClass5(String str,int index){
        System.out.println(str + index);
    }

    SingletonClass5() {

    }

    public void shafangfadouxign(){}


}
